# -*- coding:utf-8 -*-
# @Time:2024/4/1921:01
# @Author:miuzg
# @FileName:new test2.py
# @Software:PyCharm
import requests
from bs4 import BeautifulSoup
html  = '<br> br tag <br> <span> span tag <span>'
soup = BeautifulSoup(html,'lxml')
print('text:',soup.text)
print('span:',soup.contents)